package com.gylang.commons.util;


import org.springframework.util.DigestUtils;

/**
 * md5工具
 *
 * @author gylang,
 * date 2020/5/3,
 * @version 1.0
 */
public class Md5Utils {


    public static String md5(String content, String slat) {

        String md5Str = content + slat;
        return md5(md5Str);
    }

    public static String md5(String content) {

        return DigestUtils.md5DigestAsHex(content.getBytes());
    }
}

